package ${config.package_service};

import java.util.List;
import ${config.package_entity}.${table.class_name}${config.suffix_entity};

/**
 * <#if table.annotation??>${table.annotation}</#if>服务接口
 * @author ${config.author}
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
public interface ${table.class_name}${config.suffix_service} {
	
	/**
	 * 创建<#if table.annotation??>${table.annotation}</#if>
	 * @param ${StringUtil.firstFiledLower(table.class_name)}
	 * @return
	 */
	void create${table.class_name}(${table.class_name}${config.suffix_entity} ${StringUtil.firstFiledLower(table.class_name)});
	
	/**
	 * 更新<#if table.annotation??>${table.annotation}</#if>
	 * @param ${StringUtil.firstFiledLower(table.class_name)}
	 * @return
	 */
	void update${table.class_name}(${table.class_name}${config.suffix_entity} ${StringUtil.firstFiledLower(table.class_name)});
	
	/**
	 * <#if table.annotation??>${table.annotation}</#if>列表
	 * @return
	 */
	List<${table.class_name}${config.suffix_entity}> find${table.class_name}List();
	
	/**
	 * <#if table.annotation??>${table.annotation}</#if>详情
	 * @param id 主键id
	 * @return
	 */
	${table.class_name}${config.suffix_entity} find${table.class_name}(Integer ${table.primary_key_field});
	
	
}